<!-- templates/home.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
</head>
<body>
    <header>
       <h1>{{ question.question_text}}</h1>

    </header>
    <nav>
        <!-- 导航链接 -->
    </nav>
    <main>
        {% for post in posts %}
            <article>
                <h2>{{ post.title }}</h2>
                <p>{{ post.content }}</p>
                <p>Published on {{ post.pub_date|date:"F j, Y" }}</p>
            </article>
        {% endfor %}
        <ul>
        {% for choice in question.choice_set.all %}
       <li>
        <a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a>
        </li>

        {% endfor %}
</ul>
    </main>
    <aside>
        <!-- 侧边栏内容 -->
    </aside>
    <footer>
        <p>&copy; 2024 My Django App</p>
    </footer>
</body>
</html>
